<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>

    var zhang = {name:"张三",age:18,height:177,weight:70};

    // var {name,age,height,weight} = zhang;
    var {name,age,...info} = {name:"张三",age:18,height:177,weight:70};

    // ...info  => height:177,weight:70
    // info => {height:177,weight:70}

    // function fn(){
    //     console.log(arguments);
    // }
    // fn(1,4,7,2,5,8,3,6,9)

    // a => 1
    // b => 4
    // ...list => 7,2,5,8,3,6,9
    // let fn = (a,b,...list) => {
    //     console.log(a,b,list);
    // }
    // fn(1,4,7,2,5,8,3,6,9)


    // let fn = (a,b,...list) => {
    //     console.log(a,b,list);
    // }
    // fn(1,4,7,2,5,8,3,6,9)





</script>
</html>